#include "stuitem.h"
#include "ui_stuitem.h"
#include <QDebug>

StuItem::StuItem(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::StuItem)
{
    ui->setupUi(this);
}

void StuItem::setStuInfo(QString id,QString name,QString sex,QString phone,QString addr)
{
    qDebug()<<id<<" "<<name<<" "<<sex<<" "<<phone<<" "<<addr;
    ui->label_id->setText(id);
    ui->label_name->setText(name);
    ui->label_sex->setText(sex);
    ui->label_phone->setText(phone);
    ui->label_addr->setText(addr);
    qDebug()<<ui->label_id->text()<<" "<<ui->label_name->text();
}

StuItem::~StuItem()
{
    delete ui;
}
